package ysq.xyg.host.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.host.model.po.HostCollect;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.host.model.vo.HostCollectVo;

import java.util.List;

/**
 * 房产模块-用户收藏service接口
 *
 * @author congcong tao
 * @date 2019-8-30 10:34:17
 */
public interface HostCollectService extends BaseService<HostCollect> {
    /**
     * 分页查询
     *
     * @param hostCollectVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-30 10:34:17
     */
    ReturnEntity page(HostCollectVo hostCollectVo, int pageSize, int pageNum);

    /**
     * 分页关联查询
     * @param hostCollectVo
     * @param pageSize
     * @param pageNum
     * @author congcong tao
     * @date 2019/8/31 11:11
     */
    ReturnEntity pageDtoLeft(HostCollectVo hostCollectVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param hostCollectVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-30 10:34:17
     */
    ReturnEntity addOrUpdate(HostCollectVo hostCollectVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-30 10:34:17
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param hostCollectVo 对象
     * @return List<HostCollect> HostCollect集合
     * @author congcong tao
     * @date 2019-8-30 10:34:17
     */
    List<HostCollect> acceptList(HostCollectVo hostCollectVo);
}
